package com.plpm.model;

import java.time.LocalDateTime;

import lombok.Data;

/**
 * 文件信息模型
 * 
 * @author PLPM Team
 * @version 1.0
 */
@Data
public class FileInfo {
    
    private String fileName;
    private long fileSize;
    private String fileType;
    private LocalDateTime uploadTime;
    private String filePath;
    private String source; // PLPM 或 UPLOAD
    private String status; // SUCCESS, FAILED, PROCESSING
    private int chunkCount;
    private String fileId; // PLPM文件ID

    public FileInfo() {
        this.uploadTime = LocalDateTime.now();
        this.status = "PROCESSING";
        this.chunkCount = 0;
    }

    public FileInfo(String fileName, long fileSize, String fileType, String source) {
        this();
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.fileType = fileType;
        this.source = source;
    }
}
